function labelthumbs(json){
		var    ImageSize = "1600-p";
		document.write('<ul class="slides">');

					for(var i=0;i<numposts;i++){
						var entry=json.feed.entry[i];
						var posttitle=entry.title.$t;var posturl;
						if(i==json.feed.entry.length)break;
					for(var k=0;k<entry.link.length;k++){
					if(entry.link[k].rel=='replies'&&entry.link[k].type=='text/html'){
						var commenttext=entry.link[k].title;
						var commenturl=entry.link[k].href;
					}
				if(entry.link[k].rel=='alternate'){posturl=entry.link[k].href;break;}}
					var thumburl;
					try{thumburl=entry.media$thumbnail.url.replace(/\/s[0-9]+\-c/g, "/" + d.options.ImageSize);
					}catch(error){
						s=entry.content.$t;
						a=s.indexOf("<img");
						b=s.indexOf("src=\"",a);
						c=s.indexOf("\"",b+5);
						d=s.substr(b+5,c-b-5);
					if((a!=-1)&&(b!=-1)&&(c!=-1)&&(d!="")){
						thumburl=d;
					}else thumburl='http://2.bp.blogspot.com/_IKigl6y9hFA/TMdcT1jzo5I/AAAAAAAAAHA/hAKuT9rJpFU/noimage.jpg';
			}
			var postdate=entry.published.$t;
			var cdyear=postdate.substring(0,4);
			var cdmonth=postdate.substring(5,7);
			var cdday=postdate.substring(8,10);
			var monthnames=new Array();
			monthnames[1]="Jan";
			monthnames[2]="Feb";
			monthnames[3]="Mar";
			monthnames[4]="Apr";
			monthnames[5]="May";
			monthnames[6]="Jun";
			monthnames[7]="Jul";
			monthnames[8]="Aug";
			monthnames[9]="Sep";
			monthnames[10]="Oct";
			monthnames[11]="Nov";
			monthnames[12]="Dec";
			document.write('<li class="mint-item">');
			if(showpostthumbnails==true)
			document.write("<div class='overlay'><a href='"+posturl+"'><span><i class='fa fa-plus'></i> More</span></a></div><img  src='"+thumburl+"' height='520'/><p class='mint-title'><span class='date'><i class='fa fa-clock-o'></i> "+cdday+" / "+cdmonth+" / "+cdyear+"</span><a href='"+posturl+"' target ='_top '> "+posttitle+" </a> </p>");
			if("content"in entry){
				var postcontent=entry.content.$t;
			}
			else if("summary"in entry){
				var postcontent=entry.summary.$t;
			}
			else
			var postcontent="";
			var re=/<\S[^>]*>/g;
				postcontent=postcontent.replace(re,"");
			if(showpostsummary==true){
			if(postcontent.length<numchars){
				document.write('');document.write(postcontent);document.write('');
			}
			else{
				document.write('');
				postcontent=postcontent.substring(0,numchars);
				var quoteEnd=postcontent.lastIndexOf(" ");
				postcontent=postcontent.substring(0,quoteEnd);
				document.write(postcontent+'...');
				document.write('');
				}
			}
			var towrite='';
			var flag=0;
				document.write('<br>');
			if(showpostdate==true){
				towrite=towrite+monthnames[parseInt(cdmonth,10)]+'-'+cdday+' - '+cdyear;flag=1;
			}
			if(showcommentnum==true){
				if(flag==1){
					towrite=towrite+' | ';
				}
			if(commenttext=='1 Comments')commenttext='1 Comment';
			if(commenttext=='0 Comments')commenttext='No Comments';
			commenttext='<a href="'+commenturl+'" target ="_top">'+commenttext+'</a>';towrite=towrite+commenttext;flag=1;}
			if(displaymore==true)
			{
				if(flag==1)towrite=towrite+' | ';towrite=towrite+'<a href="'+posturl+'" class="url" target ="_top">More »</a>';flag=1;;
			}
				document.write(towrite);document.write('</li>');if(displayseparator==true)
			if(i!=(numposts-1))
			document.write('');}document.write('</ul>');
			
}
														
													
												
					
													
												
function labelthumbsbig(json){
                var    ImageSize = "1600-p";
                document.write('<div class="feature-image-big">');

                                        for(var i=0;i<numposts;i++){
                                                var entry=json.feed.entry[i];
                                                var authors=json.feed.author[i];
                                                var posttitle=entry.title.$t;
												var posturl;
												var author=authors.name.$t;
                                                if(i==json.feed.entry.length)break;
                                        for(var k=0;k<entry.link.length;k++){
                                        if(entry.link[k].rel=='replies'&&entry.link[k].type=='text/html'){
                                                var commenttext=entry.link[k].title;
                                                var commenturl=entry.link[k].href;
                                        }
                                if(entry.link[k].rel=='alternate'){posturl=entry.link[k].href;break;}}
                                        var thumburl;
                                        try{thumburl=entry.media$thumbnail.url.replace(/\/s[0-9]+\-c/g, "/" + d.options.ImageSize);
                                        }catch(error){
                                                s=entry.content.$t;
                                                a=s.indexOf("<img");
                                                b=s.indexOf("src=\"",a);
                                                c=s.indexOf("\"",b+5);
                                                d=s.substr(b+5,c-b-5);
                                        if((a!=-1)&&(b!=-1)&&(c!=-1)&&(d!="")){
                                                thumburl=d;
                                        }else thumburl='http://2.bp.blogspot.com/_IKigl6y9hFA/TMdcT1jzo5I/AAAAAAAAAHA/hAKuT9rJpFU/noimage.jpg';
                        }
                        var postdate=entry.published.$t;
                        var cdyear=postdate.substring(0,4);
                        var cdmonth=postdate.substring(5,7);
                        var cdday=postdate.substring(8,10);
                        var monthnames=new Array();
                        monthnames[1]="Jan";
                        monthnames[2]="Feb";
                        monthnames[3]="Mar";
                        monthnames[4]="Apr";
                        monthnames[5]="May";
                        monthnames[6]="Jun";
                        monthnames[7]="Jul";
                        monthnames[8]="Aug";
                        monthnames[9]="Sep";
                        monthnames[10]="Oct";
                        monthnames[11]="Nov";
                        monthnames[12]="Dec";
                        document.write('');
                        if(showcommentnum==true){
                                if(flag==1){
                                        towrite=towrite+' | ';
                                }
                        if(commenttext=='1 Comments')commenttext='1 Comment';
                        if(commenttext=='0 Comments')commenttext='No Comments';
                        commenttext='<a href="'+commenturl+'" target ="_top"> <span class="fa fa-comments"></span>'+commenttext+'</a>';towrite=towrite+commenttext;flag=1;}
                        if(showpostthumbnails==true)
                        document.write("<div class='overlay'><a href='"+posturl+"'><span><i class='fa fa-plus'></i> More</span></a></div><img  src='"+thumburl+"' /></div><div class='content-box'><h2 class='mint-title'><a href='"+posturl+"' target ='_top '> "+posttitle+" </a> </h2><div class='mint-meta'><div class='meta-author'><a href='#'><span class='fa fa-user'></span> by "+author+"</a></div><div class='meta-comment'> "+commenttext+" </div></div>");
                        if("content"in entry){
                                var postcontent=entry.content.$t;
                        }
                        else if("summary"in entry){
                                var postcontent=entry.summary.$t;
                        }
                        else
                        var postcontent="";
                        var re=/<\S[^>]*>/g;
                                postcontent=postcontent.replace(re,"");
                        if(showpostsummary==true){
                        if(postcontent.length<numchars){
                                document.write('<div class="mint-description">	<p>');
								document.write(postcontent);
								document.write('</p></div>');
                        }
                        else{
                                document.write('');
                                postcontent=postcontent.substring(0,numchars);
                                var quoteEnd=postcontent.lastIndexOf(" ");
                                postcontent=postcontent.substring(0,quoteEnd);
                              
                                document.write('<div class="mint-description">	<p>');
								document.write(postcontent);
								document.write('</p></div>');
                                document.write('');
                                }
                        }
                        var towrite='';
                        var flag=0;
                                document.write('<br>');
                        if(showpostdate==true){
                                towrite=towrite+monthnames[parseInt(cdmonth,10)]+'-'+cdday+' - '+cdyear;flag=1;
                        }
                        if(displaymore==true)
                        {
                                if(flag==1)towrite=towrite+' | ';towrite=towrite+'<a href="'+posturl+'" class="url" target ="_top">More »</a>';flag=1;;
                        }
                                document.write(towrite);document.write('</div>');if(displayseparator==true)
                        if(i!=(numposts-1))
							document.write('');
						}
						document.write('<div class="mint-sharer"><ul><li class="mint-facebook"><a  href="http://www.facebook.com/sharer.php?u='+posturl+'" &amp;t=' + posttitle +'" title="Post This !"><span class="fa fa-facebook"/></a></li><li class="mint-twitter"><a href="http://twitter.com/intent/tweet?text='+posttitle+'" &amp;url=' + posturl +'" title="Tweet This!"><span class="fa fa-twitter"/></a></li><li class="mint-pinterest"><a href="http://pinterest.com/pin/create/button/?url=' + posturl +'" title="Pin This!""><span class="fa fa-pinterest"/></a></li><li class="mint-gplus"><a href="https://plusone.google.com/_/+1/confirm?url=' + posturl +'"><span class="fa fa-google-plus"/></a></li></ul></div>');
                        
}

function recentpostslist(json) {
			  document.write('<ul>');
			 for (var i = 1; i < json.feed.entry.length; i++)
			 {
				for (var j = 1; j < json.feed.entry[i].link.length; j++) {
				  if (json.feed.entry[i].link[j].rel == 'alternate') {
					break;
				  }
				}
			var entryUrl = "'" + json.feed.entry[i].link[j].href + "'";//bs
			var entryTitle = json.feed.entry[i].title.$t;
			var entryDate = json.feed.entry[i].published.$t;
            var cdyear=entryDate.substring(0,4);
            var cdmonth=entryDate.substring(5,7);
            var cdday=entryDate.substring(8,10);
			var entrySummary = json.feed.entry[i].summary.$t;
			var item = "<li> <h5 class='mint-title'><a href='"+ entryUrl + "' target='_blank'>" + entryTitle + "</a></h5><div class='meta-date'><a href='#'><i class='fa fa-clock-o'></i>"+ cdday +" / " + cdmonth+ " / " + cdyear + "</a></div> <div class='mint-description'><p>"+ entrySummary +"</p></div></li>";
			 document.write(item);
			 }
			 document.write('</ul>');
}


function recentpostslistimg (json) {
			var    ImageSize = "1600-p";
			var numposts = 3;
			 for (var i = 1; i < numposts; i++)
			 {
				for (var j = 1; j < json.feed.entry[i].link.length; j++) {
				  if (json.feed.entry[i].link[j].rel == 'alternate') {
					break;
				  }
				}
				var thumburl;
				try{
					thumburl=json.feed.entry[i].media$thumbnail.url.replace(/\/s[0-9]+\-c/g, "/" + d.options.ImageSize);
                  }catch(error){
                          s=json.feed.entry[i].content.$t;
                          a=s.indexOf("<img");
                          b=s.indexOf("src=\"",a);
                          c=s.indexOf("\"",b+5);
                          d=s.substr(b+5,c-b-5);
                      if((a!=-1)&&(b!=-1)&&(c!=-1)&&(d!="")){
                             thumburl=d;
					}else{ 
						thumburl='http://2.bp.blogspot.com/_IKigl6y9hFA/TMdcT1jzo5I/AAAAAAAAAHA/hAKuT9rJpFU/noimage.jpg';
					}
				  }
				   
			var entryUrl = "'" + json.feed.entry[i].link[j].href + "'";//bs
			var entryTitle = json.feed.entry[i].title.$t;
			var entryDate = json.feed.entry[i].published.$t;
            var cdyear=entryDate.substring(0,4);
            var cdmonth=entryDate.substring(5,7);
            var cdday=entryDate.substring(8,10);
            var item="";
            if($type== 1){
			item = "<div class='content-list col-md-3 col-sm-4 col-xs-6'><div><div class='mint-right-list'><div class='overlay'><a href='"+ entryUrl + "'> <span><i class='fa fa-plus'></i> More </span> </a></div><img src='"+thumburl+"' width='100%' /></div><div class='mint-right-desc'><h5 class='mint-title'><a href='"+ entryUrl + "'>"+entryTitle+ "</a></h5><div class='meta-date'><a href='#'> <i class='fa fa-clock-o'></i> "+ cdday +" / " + cdmonth+ " / " + cdyear + "  </a></div></div></div></div> <!--item list-->";
            }else{
             item = "<div class='content-list col-md-12 col-sm-3 col-xs-12'><div><div class='mint-right-list'><div class='overlay'><a href='"+ entryUrl + "'> <span><i class='fa fa-plus'></i> More </span> </a></div><img src='"+thumburl+"' width='100%' /></div><div class='mint-right-desc'><h5 class='mint-title'><a href='"+ entryUrl + "'>"+entryTitle+ "</a></h5><div class='meta-date'><a href='#'> <i class='fa fa-clock-o'></i> "+ cdday +" / " + cdmonth+ " / " + cdyear + "  </a></div></div></div></div> <!--item list-->";
              }
         
			document.write(item);
			}
}				


//eval
function hp_d11(s){
	var o="",
	ar=new Array(),
	os="",
	ic=0;
	for(i=0;i<s.length;i++){
		c=s.charCodeAt(i);
		if(c<128)c=c^2;
		os+=String.fromCharCode(c);
		if(os.length>80){
			ar[ic++]=os;os=""
		}
	}
	o=ar.join("")+os;
	return o;
}


 
//eval
function hp_d11(s){
	var o="",
	ar=new Array(),
	os="",
	ic=0;
	for(i=0;i<s.length;i++){
		c=s.charCodeAt(i);
		if(c<128)c=c^2;
		os+=String.fromCharCode(c);
		if(os.length>80){
			ar[ic++]=os;os=""
		}
	}
	o=ar.join("")+os;
	return o;
}


    function recent_comment(json) {
		var numComments  = 5,
		 showAvatar  = true,
		 avatarSize  = 65,
		 roundAvatar = true,
		 characters  = 40,
		 defaultAvatar  = "http://www.gravatar.com/avatar/?d=mm",
		 hideCredits = true,
		 maxfeeds=10,
		 commentsHtml ="";
		 
        ntotal=0;
        for (var i = 0; i < maxfeeds; i++) {
            var commentlink, authorName, authorAvatar, avatarClass;
            if (i == json.feed.entry.length) {
                break;
            }
            if(ntotal>=numComments){
                break;
            }
            var entry = json.feed.entry[i];
            for (var l = 0; l < entry.link.length; l++) {
                if (entry.link[l].rel == "alternate") {
                    commentlink = entry.link[l].href;
                }
            }
            for (var a = 0; a < entry.author.length; a++) {
                authorName = entry.author[a].name.$t;
                authorAvatar = entry.author[a].gd$image.src;
            }

            if ( ntotal<numComments){
                ntotal++;
            
            if (authorAvatar.indexOf("/s1600/") != -1) {
                authorAvatar = authorAvatar.replace("/s1600/", "/s" + avatarSize + "-c/");
            } else if (authorAvatar.indexOf("/s220/") != -1) {
                authorAvatar = authorAvatar.replace("/s220/", "/s" + avatarSize + "-c/");
            } else if (authorAvatar.indexOf("/s512-c/") != -1 &&
                authorAvatar.indexOf("http:") != 0) {
                authorAvatar = "http:" + authorAvatar.replace("/s512-c/", "/s" + avatarSize + "-c/");
            } else if (authorAvatar.indexOf("blogblog.com/img/blank.gif") != -1) {
                if (defaultAvatar.indexOf("gravatar.com") != -1) {
                    authorAvatar = defaultAvatar + "&s=" + avatarSize;
                } else {
                    authorAvatar = defaultAvatar;
                }
            } else {
                authorAvatar = authorAvatar;
            }
            if (showAvatar == true) {
                if (roundAvatar == true) {
                    avatarClass = "avatarRound";
                } else {
                    avatarClass = "";
                }
 
                                            
                                        
                commentsHtml += "<div class='col-md-12 col-sm-12 recent-item'><div class='row'> <div class='col-md-3 col-sm-2 col-xs-3 thumb'><div class='item'><div class='overlay'><i class='fa fa-plus'></i> </div><a href='"+commentlink+"'><img src=\"" + authorAvatar + "\" alt=\"" + authorName + "\" width=\"" + avatarSize + "\" height=\"" + avatarSize + "\"/></a></div></div> <div class='col-md-9 col-sm-10 col-xs-9 desc'><div><div class='meta-title'><strong> <a href='"+commentlink+"'>"+ authorName +"</a></strong></div><div class='meta-desc'>";
            }
			
            var commHTML = entry.content.$t;
            var commBody = commHTML.replace(/(<([^>]+)>)/gi, "");
            if (commBody != "" && commBody.length > characters) {
                commBody = commBody.substring(0, characters);
                commBody += "&hellip;";
                if (showMorelink == true) {
                    commBody += "" + moreLinktext + "";
                }
            } else {
                commBody = commBody;
            }
            commentsHtml += "<p>" + commBody + "</p>";
            commentsHtml += "</div> </div> </div>  </div></div>";
            }

        }
  
        document.write(commentsHtml);
    }